const router = require('koa-router')();
router.get('/', async (ctx, next) => {
    await ctx.render('/index', {
        title: 'Hello Koa 2!'
    })
});

router.get('/string', async (ctx, next) => {
    ctx.body = 'koa2 string'
});

router.post('/json', async (ctx, next) => {

    ctx.body = {
        body: ctx.request.body,
        title: 'koa2 json'
    }
});

module.exports = router;
// const book=require('./book');
//const user=require('./user');
// require('./movie')(router);
// router.use('/book',book.routes(),book.allowedMethods());
require('./user')(router);
require('./login')(router);
require('./city')(router);
require('./banner')(router);
require('./adminLogin')(router);
require('./adminUser')(router);
require('./store')(router);
require('./upload')(router);
require('./teacher')(router);
require('./order')(router);
require('./formid')(router);
